@layout("/common/_curd/_container.html"){

	<form data-url="${basePath}/${code}/outStore" method="post" class="form-horizontal" role="form">
		<!-- 表单 -->
		<div class="form-group" style="display:block">
			<label class="col-sm-2 control-label no-padding-right"> 领取公司 </label>
			<div class="col-sm-8">
				<select name="sn_store.company" id="_company">
					<option value="一汽大众">一汽大众</option>
					<option value="一汽丰田">一汽丰田</option>
					<option value="广汽大众">广汽大众</option>
					<option value="雪佛兰">雪佛兰</option>
				</select>
				<!--<input type="text" id="_company" name="sn_store.company" required="" value="" placeholder="暂无领取公司" class="form-control">-->
			</div>
		</div>
		@ var _table="sn_store";
		@ var _col=[
		@			  {name:"商品", index:"g_id", type:"hidden",newline:true,length:8,required:"required"},
		@			  {name:"商品", index:"g_name", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"出库数量", index:"out_num", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"领用人", index:"people", type:"text",newline:true,length:8,required:"required"}
		@		   ];
		@ include("/common/_curd/_add.html", {"col":_col, "table":_table}){}

		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_save:"新增", btn_close:"关闭"}) {}
	</form>

<script>
	$("#_g_name").on("click",function () {
		var index = layer.open({
			type: 2,
			title: '出库',
			area: ['100%', '100%'],
			maxmin: true,
			shadeClose: true, //点击遮罩关闭
			content: '/snGoods/choose',
			end: function () {
				$jqGrid.jqGrid("setGridParam", {
					postData: {
						sort: "id",
						where: "{is_store:0,status:" + 5 + "}",
						order: "desc"
					}, page: 1
				}).trigger("reloadGrid");
			}
		})
	})
</script>

@}
